<template>
	<view class="g-index-main">
		<view class="g-header">
			<search disabled="true" :placeholder="'搜索品牌/车型/指导价'" @tap="toPage('/pages/searchStorage/searchStorage')" :customClass="['f-bdr-scircle']"></search>
			<screen></screen>
		</view>
		<storage-item v-for="item in list" :key="item.warehouseId" :info="item"></storage-item>
		<!-- 添加单据弹窗 -->
		<bill-modal></bill-modal>
	</view>
</template>

<script>
import storageApi from '../../../api/storage.js'
import reachBottomListMix from '../../../mixins/reachBottomList.js';
export default {
	mixins: [reachBottomListMix],
	data() {
		return {};
	},
	onLoad() {
		const that = this;
		that.getList();
	},
	methods: {
		showModal() {
			const that = this;
			that.$refs.modal.showModal({
				title: '我是弹窗',
				content: '我是内容',
				success(res) {
					console.log('res---------------');
					console.log(res);
					let title = res.confirm ? '你点击了确认!' : '你点击了取消!';
					uni.showToast({
						icon: 'none',
						title
					});
				}
			});
		},
		getList(callBack) {
			const that = this;
			// storageApi.getList(that.page, that.limit).then(callBack);
		}
	}
};
</script>

<style>
page {
	padding-top: 228rpx;
}
</style>

<style lang="scss" scoped>
.g-index-main {
	.g-header {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 999;
	}
}
</style>
